package com.jack.vipmis.vip.wei.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.springframework.format.annotation.DateTimeFormat;

import com.jack.vipmis.common.entity.BaseEntity;

/**
 * 微贴回复信息
 * 
 * @author JackLiang
 * @version 1.0
 * @date 2014-8-27
 */
@Entity
@Table(name = "vip_wei_reply_info")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class WeiReplyEntity extends BaseEntity<Long> {

	private static final long	serialVersionUID	= 1L;

	@Column
	private Long				weiId;

	@Column
	private Long				userId;

	@Column
	private String				replyContent;

	@Column(name = "create_time")
	@Temporal(TemporalType.TIMESTAMP)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date				replyTime			= new Date();

	@Column
	private String				ext;

	// getter setter
	public Long getWeiId() {
		return weiId;
	}

	public void setWeiId(Long weiId) {
		this.weiId = weiId;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getReplyContent() {
		return replyContent;
	}

	public void setReplyContent(String replyContent) {
		this.replyContent = replyContent;
	}

	public Date getReplyTime() {
		return replyTime;
	}

	public void setReplyTime(Date replyTime) {
		this.replyTime = replyTime;
	}

	public String getExt() {
		return ext;
	}

	public void setExt(String ext) {
		this.ext = ext;
	}

}
